From: Alessandro Astone Date: Fri, 12 Sep 2025 09:00:18 +0000 (+0200) Subject: st/spinner-content: Disconnect timeline callbacks when the spinner is destroyed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~95^2^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e02bd7edf3077c68141c6264e4ce419d51107b2d;p=gnome-shell.git st/spinner-content: Disconnect timeline callbacks when the spinner is destroyed The ClutterFrameClock might still have active references on the ClutterTimeline when the StSpinnerContent is freed. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8651 Part-of: --- diff --git a/src/st/st-spinner-content.c b/src/st/st-spinner-content.c index 76fe3f2da..925667c25 100644 --- a/src/st/st-spinner-content.c +++ b/src/st/st-spinner-content.c @@ -131,7 +131,7 @@ st_spinner_content_set_actor (StSpinnerContent *spinner, clutter_timeline_set_repeat_count (spinner->timeline, -1); clutter_timeline_set_progress_mode (spinner->timeline, CLUTTER_LINEAR); - g_signal_connect (spinner->timeline, "new-frame", G_CALLBACK (new_frame_cb), spinner); + g_signal_connect_object (spinner->timeline, "new-frame", G_CALLBACK (new_frame_cb), spinner, 0); if (clutter_actor_is_mapped (actor)) clutter_timeline_start (spinner->timeline);